﻿using System;
using Castle.ActiveRecord;
using Castle.ActiveRecord.Queries;
using WCell.Constants;
using WCell.Core.Initialization;
using WCell.Util.Threading;
using WCell.RealmServer.Database;
using WCell.RealmServer.Entities;
using WCell.RealmServer.Global;
using WCell.RealmServer.Guilds;

namespace Kingdoms
{
    [ActiveRecord]
    public class TerritoryDatabase : ActiveRecordBase<TerritoryDatabase>
    {
        private int id;
        private uint guildid;
        private int training;
        private int experience;
        private int guardcount;

        [PrimaryKey]
        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        [Property]
        public uint GuildID
        {
            get { return guildid; }
            set { guildid = value; }
        }

        [Property]
        public int TrainingLevel
        {
            get { return training; }
            set { training = value; }
        }
        [Property]
        public int ExperienceLevel
        {
            get { return experience; }
            set { experience = value; }
        }
        [Property]
        public int GuardCountLevel
        {
            get { return guardcount; }
            set { guardcount = value; }
        }
    }
}